<section class="content-header">
    <h1>
        IPPI Admin Page
        <small>Case Detail</small>
    </h1>
</section>
<!-- Main content -->
<section class="content">
    <!-- Main row -->
    <div class="row">
        <?php
        foreach ($list_data as $r) :
        ?>
        <div class="col-md-12">
            <?php
            if($r->status == '1'){
            ?>
            <div class="callout callout-info" id='pesan'>
                <h4>Already Proceed!</h4>
                <p>kasus sudah ditindak lanjuti.</p>
            </div>
            <?php }
            else{
                ?>
            <div class="callout callout-warning" id='pesan'>
                <h4>Haven't Proceed yet!</h4>
                <p>kasus belum ditindak lanjuti.</p>
            </div>
                    <?php
            }
            ?>
        </div>
        <div class="col-md-6">
            <!-- general form elements -->
            <div class="box box-primary">
                <div class="box-header">
                    <h3 class="box-title">Pelapor</h3>
                </div><!-- /.box-header -->
                <!-- form start -->
                <form role="form">
                    <div class="box-body">
                        <div class="form-group">
                            <label>Email / ID</label>
                            <input class="form-control" value="<?php echo $r->email;?>" readonly="">
                        </div>
                        <div class="form-group">
                            <label>Nama </label>
                            <input class="form-control" value="<?php echo $r->name;?>" readonly="">
                        </div>
                        <div class="form-group">
                            <label>Melapor Sebagai </label>
                            <input class="form-control" value="<?php echo $r->alias;?>" readonly="">
                        </div>
                    </div><!-- /.box-body -->
                </form>
            </div><!-- /.box -->
            <div class="box box-success">
                <div class="box-header">
                    <h3 class="box-title">Korban</h3>
                </div>
                <div class="box-body">
                    <div class="form-group">
                        <label>Nama</label>
                        <input class="form-control" value="<?php echo $r->korban_name;?>" readonly="">
                    </div>
                    <div class="form-group">
                        <label>Tanggal Lahir </label>
                        <?php
                                $newDate = date("d M Y", strtotime($r->korban_tgllahir));
                                ?>
                        <input class="form-control" value="<?php echo $newDate;?>" readonly="">
                    </div>
                    <div class="form-group">
                        <label>Status HIV </label>
                        <span class="form-control"> <?php echo $r->korban_statushiv;?></span>
                    </div>
                    <div class="form-group">
                        <label>ID Card </label>
                        <span class="form-control"> <?php echo $r->korban_idcard;?></span>
                    </div>
                    <div class="form-group">
                        <label>Propinsi </label>
                        <span class="form-control"> <?php echo $r->state_name;?></span>
                    </div>
                    <div class="form-group">
                        <label>Kota / Kab </label>
                        <span class="form-control"> <?php echo $r->city_name;?></span>
                    </div>
                    <div class="form-group">
                        <label>Alamat</label>
                        <span class="form-control"> <?php echo $r->korban_alamat;?></span>
                    </div>
                    <div class="form-group">
                        <label>No telp / hp</label>
                        <span class="form-control"> <?php echo $r->korban_hp;?></span>
                    </div>
                    <div class="form-group">
                        <label>Email</label>
                        <span class="form-control"> <?php echo $r->korban_email;?></span>
                    </div>
                </div><!-- /.box-body -->
            </div><!-- /.box -->
        </div>
        <div class="col-md-6">
            <!-- Form Element sizes -->
            

            <div class="box box-danger">
                <div class="box-header">
                    <h3 class="box-title">Pelaku</h3>
                </div>
                <div class="box-body">
                    <div class="form-group">
                        <label>Nama</label>
                        <span class="form-control"> <?php echo $r->pelaku_name;?></span>
                    </div>
                    <div class="form-group">
                        <label>Nama Panggilan / Alias</label>
                        <span class="form-control"> <?php echo $r->pelaku_nick;?></span>
                    </div>
                    <div class="form-group">
                        <label>Jenis Kelamin</label>
                        <span class="form-control"> <?php echo $r->pelaku_jk;?></span>
                    </div>
                    <div class="form-group">
                        <label>Hubungan dengan korban</label>
                        <span class="form-control"> <?php echo $r->pelaku_hub;?></span>
                    </div>
                    <div class="form-group">
                        <label>Telp</label>
                        <span class="form-control"> <?php echo $r->pelaku_telp;?></span>
                    </div>
                    <div class="form-group">
                        <label>Alamat</label>
                        <span class="form-control"> <?php echo $r->pelaku_alamat;?></span>
                    </div>
                    <div class="form-group">
                        <label>Email</label>
                        <span class="form-control"> <?php echo $r->pelaku_email;?></span>
                    </div>
                    <div class="form-group">
                        <label>Warna kulit</label>
                        <span class="form-control"> <?php echo $r->pelaku_warkul;?></span>
                    </div>
                    <div class="form-group">
                        <label>Tinggi</label>
                        <span class="form-control"> <?php echo $r->pelaku_tinggi;?></span>
                    </div>
                    <div class="form-group">
                        <label>Tanda</label>
                        <span class="form-control"> <?php echo $r->pelaku_tanda;?></span>
                    </div>
                    <div class="form-group">
                        <label>Karakter</label>
                        <span class="form-control"> <?php echo $r->pelaku_karakter;?></span>
                    </div>
                    <div class="form-group">
                        <label>Ciri Wajah</label>
                        <span class="form-control"> <?php echo $r->pelaku_ciwaj;?></span>
                    </div>
                </div><!-- /.box-body -->
            </div><!-- /.box -->

            <!-- Input addon -->
            
        </div>
        <div class="col-md-12">
            <div class="box box-info">
                <div class="box-header">
                    <h3 class="box-title">Kejadian Kasus</h3>
                </div>
                <div class="box-body">
                    <div class="form-group">
                        <label>Lokasi kejadian</label>
                        <span class="form-control"> <?php echo $r->dk_lokasi;?></span>
                    </div>
                    <div class="form-group">
                        <label>Propinsi</label>
                        <span class="form-control"> <?php echo $r->dk_propinsi_name;?></span>
                    </div>
                    <div class="form-group">
                        <label>Kota / Kab</label>
                        <span class="form-control"> <?php echo $r->dk_city_name;?></span>
                    </div>
                    <div class="form-group">
                        <label>Alamat</label>
                        <span class="form-control"> <?php echo $r->dk_alamat;?></span>
                    </div>
                    <div class="form-group">
                        <label>Deskripsi</label>
                        <span class="form-control" style="overflow: auto;height: auto"> <?php echo $r->dk_deskripsi;?></span>
                    </div>
                </div><!-- /.box-body -->
            </div><!-- /.box -->
        </div>
        <div class="col-md-12">
            <div class="box box-warning">
                <div class="box-header">
                    <h3 class="box-title">Tindakan lanjutan</h3>
                </div>
                <div class="box-body">
                    <div class="form-group">
                        <label>Tindakan</label>
                        <span class="form-control"> <?php echo $r->tl_value;?></span>
                    </div>
                    <div class="form-group">
                        <label>Kontak</label>
                        <span class="form-control"> <?php echo $r->tl_telp;?></span>
                    </div>
                </div><!-- /.box-body -->
            </div><!-- /.box -->
        </div>
        
        <?php
    endforeach;
        ?>
        <div class="col-md-12">
            <a class="btn btn-info btn-sm" href="<?php echo base_url("admin_reporting");?>"><i class="fa fa-chevron-left"></i>&nbsp;List Kasus</a>
            <?php 
            if($r->status == 0){
            ?>
            <a class="btn btn-success btn-sm" id='report_process' data-id='<?php echo $r->id_kasus;?>'>Process&nbsp;<i class="fa fa-chevron-right"></i></a>
            <?php
            }
            ?>
        </div>
    </div>
</section>